import request from '@/utils/request'

// 查询活动照片/视频列表
export function listActivityImage(query) {
  return request({
    url: '/active/activityImage/list',
    method: 'get',
    params: query
  })
}

// 查询活动照片/视频详细
export function getActivityImage(id) {
  return request({
    url: '/active/activityImage/' + id,
    method: 'get'
  })
}

// 新增活动照片/视频
export function addActivityImage(data) {
  return request({
    url: '/active/activityImage',
    method: 'post',
    data: data
  })
}

// 修改活动照片/视频
export function updateActivityImage(data) {
  return request({
    url: '/active/activityImage',
    method: 'put',
    data: data
  })
}

// 删除活动照片/视频
export function delActivityImage(id) {
  return request({
    url: '/active/activityImage/' + id,
    method: 'delete'
  })
}
